package com.xiao.webtest.service;

import com.xiao.webtest.DataSource;
import com.xiao.webtest.dao.UserDao;
import com.xiao.webtest.entity.UserEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by Administrator on 2014/11/15.
 */
public interface UserService {

	@DataSource("write")
    public int update(UserEntity user);

    @DataSource("read")
    public UserEntity getById(long id);
    
    @DataSource("read")
    public UserEntity getByName(String name);
}
